package main

import (
	"net/http"
)

func main() {
	// 相对路径：从go_background目录向上找，进入 vite_frontend/dist
	staticDir := "../vite_frontend/dist"

	//托管这个静态页面
	fs := http.FileServer(http.Dir(staticDir))
	http.Handle("/", fs)

	err := http.ListenAndServe(":8080", nil)
	if err != nil {
		panic(err)
	}
}
